class Circle{
	static float cr;
	float PI=3.142f;
	public float perimeter(float r)
	{
		cr=r;
		return (float)2*PI*cr;
	}
	public float area(float r)
	{
		cr=r;
		return cr*cr*PI;
	}
}
public class CreateCircle {
	public static void main(String[] args) {
        float r=2f;
        float c_Perimeter;
        float c_Area;
        Circle c=new Circle();
        c_Perimeter=c.perimeter(r);
        c_Area=c.area(r);
        
        System.out.println("半径为2的圆的周长为："+c_Perimeter);
        System.out.println("半径为2的圆的面积为："+c_Area);
        
	}

}
